/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-04-02
 * Time:9:14
 */
public class TestDemo {
    private int count;//private所定义的成员变量，仅在自家类中使用

    public static void main(String[] args) {

        TestDemo test=new TestDemo(88);

        System.out.println(test.count);

    }

    TestDemo(int a) {//构造方法:1.与类名相同 2.无返回值

        count=a;

    }
}
